import Ajax from './ajax'
import mockAjax from './mockAjax'
const getCategoryList = () => {
  return Ajax({
    url: '/product/getBaseCategoryList',
    method: 'get'
  })
}
const getBannerList = () => {
  return mockAjax({
    url: '/banner',
    method: 'get'
  })
}
const getFloor = () => {
  return mockAjax({
    url: '/floor',
    method: 'get'
  })
}
const getGoodsList = (searchParams) => {
  return Ajax({
    url: '/list',
    method: 'post',
    data: searchParams
  })
}
export {
  getCategoryList,
  getBannerList,
  getFloor,
  getGoodsList
}